package com.g2room.myuall.grap.univ.po.forum;

import java.io.Serializable;
import java.util.Date;

/** 帖子聚合表 **/
public class Post extends City implements Serializable {
	private static final long serialVersionUID = -935298261512975745L;
	
	/* 分类ID */
	private Integer categoryId;
	/* 分类名称 */
	private String categoryName;
	/* 所属新板块ID */
	private Integer fid;
	/* 作者用户ID */
	private Integer authorId;
	/* 作者用户信息地址 */
	private String authorUrl;
	/* 查看次数，暂时不同步此数据 */
	private Integer views;
	/* ID，聚合页面的新ID */
	private Integer id;
	/* 主题原标题 */
	private String oldSubject;
	/* 新标题，如果为空则使用原标题 */
	private String subject;
	/* 原主题ID，对应每一个子论坛主题的原始ID */
	private Integer tid;
	/* 帖子内容 */
	private String message;
	/* 发布时间 */
	private Date dateline;
	/*
	 * 主题状态：0：待审核（同步过来的帖子原始状态）；1：已审核（审核通过，正常显示的状态）；
	 * 2、已隐藏（通过审核但不显示的主题）；3、已删除（不显示在列表中
	 */
	private Integer status;
	/* 原主题状态 */
	private Integer oldStatus;
	/* 作者用户名 */
	private String author;
	/* 回复次数 */
	private Integer replies;
	/* 是否高亮（0,：否；1：是） */
	private Integer highlight;
	/*
	 * 0=正常;1=板块置顶;3=全局置顶
	 */
	private Integer stick;
	/* 主题链接地址，绝对路径 */
	private String url;
	/* 是否精华（0,：否；1：是） */
	private Integer digest;
	/* 所属论坛ID */
	private Integer forumId;
	/* 所属论坛名称 */
	private String forumName;
	/* 所属论坛链接地址 */
	private String forumUrl;
	/* 是否显示摘要，0、显示；1、不显示；默认为0 */
	private Integer showSummary;
	/* 摘要内容 */
	private String summary;

	public String getAuthorUrl() {
		return authorUrl;
	}

	public void setAuthorUrl(String authorUrl) {
		this.authorUrl = authorUrl;
	}

	public Integer getDigest() {
		return digest;
	}

	public void setDigest(Integer digest) {
		this.digest = digest;
	}

	public String getUrl() {
		return url;
	}

	public void setUrl(String url) {
		this.url = url;
	}

	public Integer getStick() {
		return stick;
	}

	public void setStick(Integer stick) {
		this.stick = stick == null ? 0 : stick;
	}

	public Integer getHighlight() {
		return highlight;
	}

	public void setHighlight(Integer highlight) {
		this.highlight = highlight;
	}

	public Integer getReplies() {
		return replies;
	}

	public void setReplies(Integer replies) {
		this.replies = replies;
	}

	public String getAuthor() {
		return author;
	}

	public void setAuthor(String author) {
		this.author = author;
	}

	public Integer getOldStatus() {
		return oldStatus;
	}

	public void setOldStatus(Integer oldStatus) {
		this.oldStatus = oldStatus;
	}

	public Integer getStatus() {
		return status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	public Date getDateline() {
		return dateline;
	}

	public void setDateline(Date dateline) {
		this.dateline = dateline;
	}

	public Integer getTid() {
		return tid;
	}

	public void setTid(Integer tid) {
		this.tid = tid;
	}

	public String getSubject() {
		return subject;
	}

	public void setSubject(String subject) {
		this.subject = subject;
	}

	public String getOldSubject() {
		return oldSubject;
	}

	public void setOldSubject(String oldSubject) {
		this.oldSubject = oldSubject;
	}

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Integer getViews() {
		return views;
	}

	public void setViews(Integer views) {
		this.views = views;
	}

	public Integer getAuthorId() {
		return authorId;
	}

	public void setAuthorId(Integer authorId) {
		this.authorId = authorId;
	}

	public Integer getFid() {
		return fid;
	}

	public void setFid(Integer fid) {
		this.fid = fid;
	}

	public Integer getCategoryId() {
		return categoryId;
	}

	public void setCategoryId(Integer categoryId) {
		this.categoryId = categoryId;
	}

	public Integer getForumId() {
		return forumId;
	}

	public void setForumId(Integer forumId) {
		this.forumId = forumId;
	}

	public String getForumName() {
		return forumName;
	}

	public void setForumName(String forumName) {
		this.forumName = forumName;
	}

	public String getForumUrl() {
		return forumUrl;
	}

	public void setForumUrl(String forumUrl) {
		this.forumUrl = forumUrl;
	}

	public String getCategoryName() {
		return categoryName;
	}

	public void setCategoryName(String categoryName) {
		this.categoryName = categoryName;
	}

	public Integer getShowSummary() {
		return showSummary;
	}

	public void setShowSummary(Integer showSummary) {
		this.showSummary = showSummary;
	}

	public String getSummary() {
		return summary;
	}

	public void setSummary(String summary) {
		this.summary = summary;
	}

	public String getMessage() {
		return message;
	}

	public void setMessage(String message) {
		this.message = message;
	}

	@Override
	public String toString() {
		return "Post [categoryId=" + categoryId + ", categoryName="
				+ categoryName + ", fid=" + fid + ", authorId=" + authorId
				+ ", views=" + views + ", id=" + id + ", oldSubject="
				+ oldSubject + ", subject=" + subject + ", tid=" + tid
				+ ", dateline=" + dateline + ", status=" + status
				+ ", oldStatus=" + oldStatus + ", author=" + author
				+ ", replies=" + replies + ", highlight=" + highlight
				+ ", stick=" + stick + ", url=" + url + ", digest=" + digest
				+ ", forumId=" + forumId + ", forumName=" + forumName + ", forumUrl=" + forumUrl
				+ ", message=" + this.message 
				+ ", province=" + this.getProvince() 
				+ ", provinceName=" + this.getProvinceName()
				+ ", city=" + this.getCity() + ", cityName=" + this.getCityName()
				+ ", showSummary=" + showSummary + ", summary=" + summary + "]";
	}

}